package com.mall.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 收货地址维护对象 t_user_address
 *
 * @author ruoyi
 * @date 2025-03-30
 */
@Data
@TableName(value = "t_user_address")
@EqualsAndHashCode(callSuper = true)
public class TUserAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;
    /**
     * "详细地址"
     */
    @Excel(name = "详细地址")
    @Size(min = 0, max = 200, message = "详细地址不能超过200个字符")
    @NotBlank(message = "详细地址不能为空")
    private String address;
    /**
     * "省"
     */
    @Excel(name = "省")
    private String province;
    /**
     * "市"
     */
    @Excel(name = "市")
    private String city;
    /**
     * "区域"
     */
    @Excel(name = "区域")
    private String county;
    /**
     * "电话"
     */
    @Excel(name = "电话")
    private String phone;
    /**
     * "姓名"
     */
    @Excel(name = "姓名")
    private String name;
    /**
     * "是否默认地址  1 是"
     */
    @Excel(name = "是否默认地址")
    private String isMr;
}
